package com.ycxy.school.express.web.enums;

import lombok.Getter;

import java.util.Arrays;

/**
 * 角色性别枚举
 */
@Getter
public enum SexEnum{
    /**
     * 男性
     */
    MALE(1, "male", "男"),
    /**
     * 女性
     */
    FEMALE(0, "female", "女"),
    /**
     * 保密
     */
    CONFIDENTIALITY(-1, "confidentiality", "保密");

    private Integer type;

    private String name;

    private String cname;

    SexEnum(int type, String name, String cname) {
        this.type = type;
        this.name = name;
        this.cname = cname;
    }

    public Integer getValue() {
        return this.type;
    }

}
